package com.idroc.coelacanth.service.servant;

import com.idroc.coelacanth.core.dht.ConsistendHashNode;
import com.idroc.coelacanth.core.dht.ConsistendHashNodes.NodeBuilder;

/**
 * 存储节点创建者
 * @author yuyoo (yuyoo4j@163.com)
 * @date 2009-12-18 下午04:45:15
 */
public class StorageNodeBuilder implements NodeBuilder {
	 
	public static final int HASH_STORAGE_NODE = 1;
	
	public ConsistendHashNode newInstance(int type) {
		
		if (type == HASH_STORAGE_NODE) {
			return new HashStorageNode();
		}
		return null;
	}	
}
